package com.spa.infrastructure.mapper;

import com.spa.domain.entity.Rule;
import com.spa.infrastructure.repository.po.RulePO;
import org.mapstruct.Mapper;
import org.mapstruct.MapperConfig;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
@MapperConfig(unmappedTargetPolicy = ReportingPolicy.WARN)
public interface RuleMapperStruct {

    RuleMapperStruct INSTANCE = Mappers.getMapper(RuleMapperStruct.class);

    List<Rule> po2Entity4List(List<RulePO> po);
    Rule po2Entity(RulePO po);


}
